#! /bin/bash

# Smudge driver for the kwexpander filter for expanding keywords. Currently
# only $Date$ is supported.
#
# See CONTRIBUTING.md for usage information.

last_date=$(git log --pretty=format:"%ad" -1 HEAD -- "$1")
sed -e 's/\$Date.*\$/\$Date: '"$last_date"' \$'/
